FROM java:8

LABEL maintainer="xinghua<764237865@qq.com>"

WORKDIR /opt/autumn-config-server/

ADD ./src/autumn-config/autumn-config-server/target/lib /opt/autumn-config-server/lib
ADD ./src/autumn-config/autumn-config-server/target/resources /opt/autumn-config-server/resources
ADD ./src/autumn-config/autumn-config-server/target/autumn-config-server.jar /opt/autumn-config-server/autumn-config-server.jar

RUN cp -rf /opt/autumn-config-server/resources/docker/* /opt/autumn-config-server/resources/ && rm -rf /opt/autumn-config-server/resources/docker/

EXPOSE 8673
EXPOSE 20881

ENTRYPOINT [ "java","-jar","autumn-config-server.jar" ]